-- GENERATED SPELL FOR [Centipaar Sandreaver] --


function spell0_5460(pUnit, Event) --@Arcing Smash,n/a--
pUnit:FullCastSpellOnTarget(8374,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_5460', 592, 1)
end

function spell1_5460(pUnit, Event) --@Thrash,Self--
pUnit:FullCastSpellOnTarget(3391,pUnit)
pUnit:RegisterEvent('Sorts_5460', 593, 1)
end

function Sorts_5460(pUnit, Event)
local choix_sorts_5460 = math.random(0, 1)
if choix_sorts_5460 == 0 then
pUnit:RegisterEvent('spell0_5460', 1, 1)
end
if choix_sorts_5460 == 1 then
pUnit:RegisterEvent('spell1_5460', 1, 1)
end
end

function mob5460_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_5460', math.random(1500, 3000), 1)
end

function mob5460_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5460_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5460_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(5460, 1, 'mob5460_Action')
RegisterUnitEvent(5460, 2, 'mob5460_Leave')
RegisterUnitEvent(5460, 3, 'mob5460_Kill')
RegisterUnitEvent(5460, 4, 'mob5460_Die')
